package com.hikvision.rpq.sblearn.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author renpeiqian
 * @date 2021/9/6 11:44
 * @since
 */
@Component
public class StaticMethodGetBean {


    @Value("${third.ip}")
    private String ip;

    private static  String address;


    @PostConstruct
    public void  init(){
       address=ip;
    }

    public static String getAddress(){
        return address;
    }
}
